-- GENERATED SPELL FOR [Twilight Acolyte] --


function spell0_4809(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(2055,pUnit)
pUnit:RegisterEvent('Sorts_4809', 3000, 1)
end

function spell1_4809(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(8362,pUnit)
pUnit:RegisterEvent('Sorts_4809', 22000, 1)
end

function Sorts_4809(pUnit, Event)
local choix_sorts_4809 = math.random(0, 1)
if choix_sorts_4809 == 0 then
pUnit:RegisterEvent('spell0_4809', 1, 1)
end
if choix_sorts_4809 == 1 then
pUnit:RegisterEvent('spell1_4809', 1, 1)
end
end

function mob4809_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4809', math.random(1500, 3000), 1)
end

function mob4809_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4809_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4809_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4809, 1, 'mob4809_Action')
RegisterUnitEvent(4809, 2, 'mob4809_Leave')
RegisterUnitEvent(4809, 3, 'mob4809_Kill')
RegisterUnitEvent(4809, 4, 'mob4809_Die')
